net/netip.Addr.v4 (method)
17 uses
net/netip (current package)
netip.go#L361: func (ip Addr) v4(i uint8) uint8 {
netip.go#L526: return ip.v4(0) == 169 && ip.v4(1) == 254
netip.go#L545: return ip.v4(0) == 127
netip.go#L564: return ip.v4(0)&0xf0 == 0xe0
netip.go#L594: return ip.v4(0) == 224 && ip.v4(1) == 0 && ip.v4(2) == 0
netip.go#L648: return ip.v4(0) == 10 ||
netip.go#L649: (ip.v4(0) == 172 && ip.v4(1)&0xf0 == 16) ||
netip.go#L650: (ip.v4(0) == 192 && ip.v4(1) == 168)
netip.go#L862: ret = appendDecimal(ret, ip.v4(0))
netip.go#L864: ret = appendDecimal(ret, ip.v4(1))
netip.go#L866: ret = appendDecimal(ret, ip.v4(2))
netip.go#L868: ret = appendDecimal(ret, ip.v4(3))
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |